package com.anzia.storeback.service;

import com.anzia.storeback.entity.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

// 购物车？
@Service
public interface ShoppingCartService {

    void updateShoppingCart(int user_id, int product_id, int num);
    void addShoppingCart(int user_id, int product_id);
    ShoppingCart findShoppingCart(int user_id, int product_id);
    List<ShoppingCart> getShoppingCart(int user_id);
    Map[] getShoppingCartData(List<ShoppingCart> shoppingCarts);
    boolean deleteShoppingCart(Integer user_id, Integer product_id);

}
